// encoding utf-8
#ifndef __QyGLConfigurator__
#define __QyGLConfigurator__

#include <QtCore/QObject>
#include "QyGLViewWidget.h"

namespace QyGL {

class AbstractOption {
public:
	virtual ~AbstractOption() {}

	virtual QString value() const = 0;
	virtual QStringList values() const {}

	virtual void setValue( const QString & value ) = 0;

};

class Configurator : public QObject {
	Q_OBJECT
public:
	explicit Configurator( QObject * parent = 0 );

	ViewSettings & viewSettings() const;

	void setFileName( const QString & fileName );
	void setViewSettings( const ViewSettings & viewSettings );
	void showDialog();

signals:
	void changed( const ViewSettings & viewSettings );

};

};

#endif//__QyGLConfigurator__
